﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entity
{
  public  class Bill
    {
        #region Fields

        private int billId;

        private DateTime datecreate;

        private Employee _employee;

        private Table _table;

        private int tableExtent;

        private BillStatus status = BillStatus.Open;

        IList<BillDetail> _listbilldetail = new List<BillDetail>();        
        #endregion

        #region Properties
        public int BillId
        {
            get { return billId; }
            set { billId = value; }
        }        

        public DateTime Datecreate
        {
            get { return datecreate; }
            set { datecreate = value; }
        }        

        internal Employee Employee
        {
            get { return _employee; }
            set { _employee = value; }
        }        

        public Table Table
        {
            get { return _table; }
            set { _table = value; }
        }        

        public int TableExtent
        {
            get { return tableExtent; }
            set { tableExtent = value; }
        }
        
        public BillStatus Status
        {
            get { return status; }
            set { status = value; }
        }

        public IList<BillDetail> Listbilldetail
        {
            get { return _listbilldetail; }
            set { _listbilldetail = value; }
        }
        #endregion
    }
}
